from django.contrib.auth.models import AbstractUser
from django.db import models

# Create your models here.
class User(AbstractUser):
    username = models.CharField(
        max_length=120,
        unique=True,
        verbose_name="用户名",
    )

    nickname = models.CharField(
        max_length=120,
        verbose_name="用户昵称",
        default="",
    )

    email = models.EmailField(
        default="",
        verbose_name="邮箱",
    )

    user_pic = models.TextField(
        default='',
        verbose_name="用户头像",
        blank=True,
        null=True,
    )

    password = models.CharField(
        max_length=128,
        default='123456',
        verbose_name="用户密码"
    )